cmake_minimum_required(VERSION 3.8)
project(string_strip)

set(var "   Hello  ")
message(STATUS "var = ${var}")

string(LENGTH ${var} len)
message(STATUS "before strip len = ${len}")

string(STRIP ${var} var1)
message(STATUS "var1 = ${var1}")
string(LENGTH ${var1} len1)
message(STATUS "after strip len1 = ${len1}")
